Class Constructor
class
Form
(object $dbconn, array $config)
-
object
$dbconn: - ADODB connection
-
array
$config: - config array
void
addNewRegExp
(mixed $regexp_data)
Adds new section
new
addNewSection
(array $section_data)
-
array
$section_data: - New section data
void
addSectionAttribute
(mixed $id_section, mixed $attr_data)
void
attrSearch
(mixed $id_attr, mixed $value, [mixed $id_user = ''])
void
checkIfAttrIsConst
(mixed $id_attr)
void
checkIfSectionIsConst
(mixed $id_section)
void
deleteForm
(mixed $id_form)
void
delRegExp
(mixed $regexp_id)
Deletes specified section
if
delSection
(int $id_section)
-
int
$id_section: - Section ID
void
delSectionAttribute
(mixed $id_attr)
void
delUserAttributes
(mixed $id_user)
Gets all existing attributes using filter and order
unknown
getAllAttributes
(int &$total_count, [str $filter_str = ''], [str $order_by = ''], [mixed $ids_only = false])
-
int
&$total_count: - total returned attributes count
-
str
$filter_str: - SQL query filter
-
str
$order_by: - SQL query order
void
getAllDataSources
()
void
getAllUserData
(mixed $id_user, [mixed $convert_to_str = false])
void
getControlType
(mixed $control_type)
void
getDataSourceValues
(mixed $ds_id)
Gets all specified form attributes
attributes
getFormAttributes
(int $id_form)
Gets specified section data
section
getSection
(int $id_section)
-
int
$id_section: - Section ID
Gets specified section attribute
attribute
getSectionAttribute
(int $id_attr)
-
int
$id_attr: - Attribute ID
Gets all specified section attributes
all
getSectionAttributes
(int $id_section, int &$total_count, [int $id_form = ''])
-
int
$id_section: - Section ID
-
int
$total_count: - Total count of returned attributes
-
int
$id_form: - If specified will be used to filter attributes
Gets all sections
all
getSections
()
Gets user attribute value in various formats (view/edit), depending on last parametr
user
getUserAttribute
(int $id_user, int $id_attr, [bool $convert_to_str = false])
-
int
$id_user: - User ID
-
int
$id_attr: - Attribute ID
-
bool
$convert_to_str: - Determines is data for display, or data for edit
void
getUserSectionData
(mixed $id_user, mixed $id_section, [mixed $convert_to_str = false])
Saves user attibute (inserts new if not exists, or updates existing)
void
saveUserAttribute
(int $id_user, int $id_attr, array $new_value)
-
int
$id_user: - User ID
-
int
$id_attr: - Attribute ID
-
array
$new_value: - New attribue data
void
saveUserAttributes
(mixed $id_user, mixed $attrs)
void
toDate
(mixed $id_user, mixed $id_date_attr)
Updates form block
void
updateForm
(mixed $id_form, array $attrs, int $id_block)
-
int
$id_block: - Block ID
-
array
$attrs: - New Block Attributes
void
updateRegExps
(mixed $regs)
void
updateSectionAttribute
(mixed $id_attr, mixed $attr_data)